<template>
    <view class="content">
        <c-loading ref="loadingRef"></c-loading>
        <view> {{ userInfo.name }}</view>
        <view> {{ this.$store.state.userInfo.name }}</view>
    </view>
</template>

<script>
import {getDict} from "@/net/Api";
import * as Constants from "@/common/Constants";

export default {
    data() {
        return {
        }
    },
    computed: {
        userInfo() {
            return this.$store.getters['getUserInfo'];
        }
    },
    onLoad(options) {
        // console.log(this.$appConfig.apiUrl);
        // uni.setStorageSync(Constants.TOKEN, "123456")
        // let params = {
        //     id: 1
        // }
        // getDict(params).then((res) => {
        //
        // }).catch((err) => {
        //
        // })
    },
    mounted() {
        console.log("this.$store.state.userInfo = ",this.$store.state.userInfo.name)

    },
    methods: {
    }
}
</script>

<style lang="scss" scoped>
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo {
    height: 200rpx;
    width: 200rpx;
    margin: 200rpx auto 50rpx auto;
}

.text-area {
    display: flex;
    justify-content: center;
}

.title {
    font-size: 36rpx;
    color: #8f8f94;
}
</style>
